package cn.easybuy.dao.order;

import cn.easybuy.utils.ShoppingCart;

public interface CartService {
	
	/**
	 * 	修改购物车商品数量
	 * @param productId
	 * @param quantity
	 * @param cart
	 * @return
	 * @throws Exception
	 */
	public ShoppingCart modifyShoppingCart(String productId,Integer quantity,ShoppingCart cart) throws Exception;

	
	/**
	 * 	对购物车的总金额进行重新计算
	 * @param cart
	 * @return
	 * @throws Exception
	 */
	public ShoppingCart calculate (ShoppingCart cart) throws Exception;
}
